home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 38
/
Amiga Format CD38 (1999-03-15)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-04].iso
/
-in_the_mag-
/
reader_requests
/
dice_v3.15
/
lib
/
amigalib
/
createstdio.c
< prev
next >
Wrap
C/C++ Source or Header
|
1999-01-26
|
879b
|
45 lines
/*
* CreateStdIO.C (1.3/2.0) (for 2.0 only apps use CreateIORequest())
*
* (c)Copyright 1992-1997 Obvious Implementations Corp. Redistribution and
* use is allowed under the terms of the DICE-LICENSE FILE,
* DICE-LICENSE.TXT.
*
*/
#include <exec/types.h>
#include <exec/ports.h>
#include <exec/memory.h>
#include <exec/io.h>
#ifdef INCLUDE_VERSION /* 2.0 */
#include <clib/exec_protos.h>
#include <clib/alib_protos.h>
#else
extern void *CreateExtIO(void *, long);
extern void DeleteExtIO(void *);
#endif
typedef struct MsgPort MsgPort;
typedef struct IORequest IORequest;
typedef struct IOStdReq IOStdReq;
#ifndef HYPER
#define HYPER
#endif
IOStdReq *
HYPER ## CreateStdIO(replyPort)
MsgPort *replyPort;
{
return((IOStdReq *)CreateExtIO(replyPort, sizeof(IOStdReq)));
}
void
DeleteStdIO(io)
IOStdReq *io;
{
DeleteExtIO((IORequest *)io);
}